package com.example.demo.model.json;

import com.alibaba.fastjson.JSONObject;

public class CommonRootBean  extends JSONObject {
    private int code;
    private int error_code;
    private String path;
    private String status;

    private String msg;
    private String message;

    private String data;

    @Override
    public String toString() {
        return "CommonRootBean{" +
                "code=" + code +
                ", error_code=" + error_code +
                ", path='" + path + '\'' +
                ", status='" + status + '\'' +
                ", msg='" + msg + '\'' +
                ", message='" + message + '\'' +
                ", data='" + data + '\'' +
                '}';
    }
//    CommonRootBean commonRootBean = JSON.parseObject(result, CommonRootBean.class);


    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }


    public void setData(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public String getStatus() {
        return status;
    }

    public String getPath() {
        return path.replace("\\","");//去除转义字符
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
